<template>
  <el-table-column :prop="item.prop" :label="item.label" show-overflow-tooltip :width="item.width" :formatter="item.formatter" :min-width="item.minWidth" />
</template>

<script setup lang="ts">
  import { PropType, toRefs } from 'vue';

  import { BaseColumnType } from '../common-table-type';

  const props = defineProps({
    item: {
      type: Object as PropType<BaseColumnType>,
      default: () => ({}),
    },
  });

  const { item } = toRefs(props);
</script>

<style scoped></style>
